on goToThumbs -- list of all possible values of gUsersChoice set usersChoiceList to ["Arizona", "CaliforniaSD", "CaliforniaSF", "Connecticut", "Florida", "Illinois", "Louisiana", "Maine", "Maryland", "Massachusetts", "Minnesota", "Missouri", "Montana", "Nevada", "New Jersey", "New Mexico", "New York", "Oregon", "Pennsylvania", "South Carolina", "Tennessee", "Texas", "Virginia", "Washington", "Wyoming"] -- list of corresponding values for thumbnail movie set categoryList to ["AZ", "CASD", "CASF", "CT", "FL", "IL", "LA", "ME", "ML", "MA", "MN", "MS", "MO", "NV", "NJ", "NM", "NY", "OR", "PA", "SC", "TN", "TX", "VA", "WA", "WY"] -- figure out what the position of gUserChoice is in the usersChoiceList and then locate the corresponding item in categoryList to set gCategory set listPos to getPos(usersChoiceList, gUsersChoice) set gCategory to getAt(categoryList, listPos) setThumbScreen set gSection to #thumb puppetTransition gTransition go to frame "thumbDisplay" end